package com.java.base.javabase.thread;

public class ThreadFirst extends Thread{

    private int i = 5;

    private String tName;

    public ThreadFirst(String tName) {
        this.tName = tName;
    }

    @Override
    public void run() {
         i = i--;
        try {
            Thread.sleep(9000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(tName + " -- " + i);
    }

}
